package cn.jussi.model;

import java.util.Date;

public class User {	
	private int id;
	private String userName;
	private String password;
	private String phoneNum;
	private String address;
	private Date regDate;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPhoneNum() {
		return phoneNum;
	}
	public void setPhoneNum(String phoneNum) {
		this.phoneNum = phoneNum;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public Date getRegDate() {
		return regDate;
	}
	public void setRegDate(Date regDate) {
		this.regDate = regDate;
	}
	
	public User() {};
	
	public User(int id, String userName, String password, String phoneNum, String address, Date regDate) {
		super();
		this.id = id;
		this.userName = userName;
		this.password = password;
		this.phoneNum = phoneNum;
		this.address = address;
		this.regDate = regDate;
	}
	
	@Override
	public String toString() {
		return "User [id=" + id + ", userName=" + userName + ", password=" + password + ", phoneNum=" + phoneNum
				+ ", address=" + address + ", regDate=" + regDate + "]";
	}
}
